<?php
declare(strict_types=1);

namespace App\Common\Model\System;

use Zms\Basics\BasicsModel;
use Zms\HyperfCasts\StrtotimeCasts;

/**
 * @property int $id
 * @property string $driver 驱动类型
 * @property string $template_id 短信模板
 * @property string $phone 手机号码
 * @property string $content 短信内容
 * @property int $status 发送状态
 * @property int $send_at 发送时间
 */
class SmsModel extends BasicsModel
{
    const CREATED_AT = 'send_at';
    const UPDATED_AT = null;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'system_sms';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = [];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = [
        'id' => 'int',
        'status' => 'int',
        'send_at' => StrtotimeCasts::class,
    ];
}
